Added profile slider function