Competing interactions in correlated heterostructures